const mongoose = require('mongoose')

const filmSchema = new mongoose.Schema({
    name:String,
    director:String,
    playLength:Number,
    upDate:String,
    type:Array,
    actor:Array,
    score:Number,
    scoreCount:Number,
    index_image:String
})

module.exports = mongoose.model('filmModel',filmSchema,'films');